﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="GroupList.aspx.cs" Inherits="Cms.Admin.Picture.GroupList" %>

<%@ Register Src="../../Common/Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Controls/Pager.ascx" TagName="Pager" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        ul.pic_group li
        {
            margin: 0px;
            padding: 0px;
            width: 112px;
            list-style-type: none;
            float: left;
            margin-left: 20px;
        }
        ul.pic_group li a.img
        {
            width: 112px;
            height: 116px;
            background-image: url(../../common/style/skin1/images/photo_v2.png);
            background-position: 0px -157px;
            background-repeat: no-repeat;
            display: block;
            text-align: center;
            border-width: 0px;
        }
        ul.pic_group li a.img:hover
        {
            background-position: -117px -157px;
        }
        ul.pic_group li p
        {
            height: 20px;
            line-height: 20px;
        }
        ul.pic_group li div
        {
            height: 20px;
            line-height: 20px;
            width: 110px;
            overflow: hidden;
            white-space: nowrap;
        }
        .pic_edit
        {
            visibility: hidden;
        }
        .gray
        {
            color: Gray;
        }
        #content .pic_group li img
        {
            max-height: 105px;
            max-width: 105px;
        }
    </style>

    <script type="text/javascript">
        function mouse_over(id)
        {
            document.getElementById(id).style.visibility = "visible";
        }

        function mouse_out(id)
        {
            document.getElementById(id).style.visibility = "hidden";
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hidOrders" runat="server" />
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkMove" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/move.gif);">
                &nbsp;</b>移动</span> </a></li>
            <li>
                <asp:Button ID="btnRefresh" runat="server" Text="Button" OnClick="btnRefresh_Click"
                    CssClass="refresh" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="lblMenuName" Style="margin-left: 10px;" runat="server" Text="Label"
                Visible="false" Font-Bold="true"></asp:Label><asp:Label ID="lblStatistic" runat="server"
                    Text="Label"></asp:Label></div>
        <%--<div class="right">
            <asp:Label ID="Label4" runat="server" Text="标题：" Font-Bold="true"></asp:Label><asp:TextBox
                ID="txtSearch" runat="server" Width="113px" CssClass="txt"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="搜索" 
                onclick="btnRefresh_Click" />           
        </div>--%>
    </div>
    <div id="content">
        <ul class="pic_group">
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" OnItemDataBound="lv_ItemDataBound"
                EnableViewState="false">
                <LayoutTemplate>
                    <li id="items" runat="server"></li>
                </LayoutTemplate>
                <ItemTemplate>
                    <li onmouseover='mouse_over("p_<%#Eval("ID") %>")' onmouseout='mouse_out("p_<%#Eval("ID") %>")'>
                        <a id='lnk_<%#Eval("ID") %>' class="img" href='GroupPictureList.aspx?ArticleID=<%#Eval("ID") %>'>

                            <script type="text/javascript">
                                loadImage('<%#GetPicturePath(Eval("SmallImageAbsPath")) %>', 'lnk_<%#Eval("ID") %>', 105, 105, 112)
                            </script>

                        </a>
                        <div title='<%#Eval("Name") %>'>
                            <%#Eval("Name") %></div>
                        <p class="gray">
                            共<%#Eval("PictureCount")%>张</p>
                        <p id='p_<%#Eval("ID") %>' class="pic_edit">
                            <a href="javascript:;" id="lnkEdit" runat="server">编辑</a><a style="margin-left: 5px;"
                                href="javascript:;" id="lnkDelete" runat="server">删除</a></p>
                    </li>
                </ItemTemplate>
            </asp:ListView>
        </ul>
    </div>
    <div style="clear: both;">
    </div>
    <div>
</asp:Content>
